<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Context Free LALR1 compiler: contextFree.parser.LR0 Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="LOGO.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Context Free LALR1 compiler
   &#160;<span id="projectnumber">1.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classcontext_free_1_1parser_1_1_l_r0.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">contextFree.parser.LR0 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for contextFree.parser.LR0:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0__inherit__graph.png" border="0" usemap="#context_free_8parser_8_l_r0_inherit__map" alt="Inheritance graph"/></div>
<map name="context_free_8parser_8_l_r0_inherit__map" id="context_free_8parser_8_l_r0_inherit__map">
<area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html" title="{contextFree.parser.LALR1\n|~ logger\l&#45; isAmbiguous\l&#45; ambiguo\l&#45; automa\l&#45; actionTable\l&#45; gotoTable\l|+ LALR1()\l+ LALR1()\l+ getActionTable()\l+ setActionTable()\l+ getGotoTable()\l+ setGotoTable()\l+ getAutoma()\l+ getGrammar()\l+ setGrammar()\l+ init()\land 6 more...&#45; calculateSymbol()\l}" alt="" coords="5,403,216,701"/><area shape="rect" id="node2" href="interfacecontext_free_1_1parser_1_1_i_parser.html" title="{contextFree.parser.IParser\n||+ setGrammar()\l+ init()\l+ getGrammar()\l+ isAmbiguos()\l+ getAutoma()\l}" alt="" coords="23,5,199,141"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for contextFree.parser.LR0:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0__coll__graph.png" border="0" usemap="#context_free_8parser_8_l_r0_coll__map" alt="Collaboration graph"/></div>
<map name="context_free_8parser_8_l_r0_coll__map" id="context_free_8parser_8_l_r0_coll__map">
<area shape="rect" id="node2" href="interfacecontext_free_1_1parser_1_1_i_parser.html" title="{contextFree.parser.IParser\n||+ setGrammar()\l+ init()\l+ getGrammar()\l+ isAmbiguos()\l+ getAutoma()\l}" alt="" coords="5,57,181,193"/><area shape="rect" id="node4" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html" title="Grammar Interface." alt="" coords="206,6,412,245"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classcontext_free_1_1parser_1_1_l_r0-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab87079bb387c26bad40d3678e80eefc9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab87079bb387c26bad40d3678e80eefc9"></a>
abstract void&#160;</td><td class="memItemRight" valign="bottom"><b>setGrammar</b> (<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a> gram)</td></tr>
<tr class="memitem:a1936c0d9c7c80de80a5b3913f8f710b7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1936c0d9c7c80de80a5b3913f8f710b7"></a>
abstract int&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> ()  throws Exception</td></tr>
<tr class="memitem:aa0e8369b6e2db7489437ad8a6f217d22"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html#aa0e8369b6e2db7489437ad8a6f217d22">chiusura</a> (List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt; i)</td></tr>
<tr class="memdesc:aa0e8369b6e2db7489437ad8a6f217d22"><td class="mdescLeft">&#160;</td><td class="mdescRight">*I passed a list of production that form the kernel of a state, return closing it  <a href="#aa0e8369b6e2db7489437ad8a6f217d22"></a><br/></td></tr>
<tr class="memitem:aea1ecb06a1880a8bc5eeb4efcca0ecea"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html#aea1ecb06a1880a8bc5eeb4efcca0ecea">GoTo</a> (List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt; i, String X)</td></tr>
<tr class="memdesc:aea1ecb06a1880a8bc5eeb4efcca0ecea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Passed a state and the symbol that follows the point, returns the kernel of the new state with the relative closure.  <a href="#aea1ecb06a1880a8bc5eeb4efcca0ecea"></a><br/></td></tr>
<tr class="memitem:aa96d752420b690ccbbc9fad67691f36a"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_state.html">State</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html#aa96d752420b690ccbbc9fad67691f36a">Item</a> ()</td></tr>
<tr class="memdesc:aa96d752420b690ccbbc9fad67691f36a"><td class="mdescLeft">&#160;</td><td class="mdescRight">given a grammar G we calculate the associated grammar augmented by adding the production S ':: =.  <a href="#aa96d752420b690ccbbc9fad67691f36a"></a><br/></td></tr>
<tr class="memitem:a8de929e041a5a1a273e6ddd05dc7e0ca"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html#a8de929e041a5a1a273e6ddd05dc7e0ca">uguale</a> (List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_state.html">State</a> &gt; automa, List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt; stato)</td></tr>
<tr class="memdesc:a8de929e041a5a1a273e6ddd05dc7e0ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">checks if a state is present in an automaton  <a href="#a8de929e041a5a1a273e6ddd05dc7e0ca"></a><br/></td></tr>
<tr class="memitem:a242530010547a830ad1b9c35a724a7e6"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html#a242530010547a830ad1b9c35a724a7e6">prodPresente</a> (List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt;j, <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> corrente)</td></tr>
<tr class="memdesc:a242530010547a830ad1b9c35a724a7e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">checks if a production is already in a list of productions.  <a href="#a242530010547a830ad1b9c35a724a7e6"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:aa81cb7c5781fa4b6f1a129077a4da618"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa81cb7c5781fa4b6f1a129077a4da618"></a>
<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>grammatica</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_l_r0_8java_source.html#l00013">13</a> of file <a class="el" href="_l_r0_8java_source.html">LR0.java</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa0e8369b6e2db7489437ad8a6f217d22"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a>&gt; <a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html#aa0e8369b6e2db7489437ad8a6f217d22">contextFree.parser.LR0.chiusura</a> </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt;&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>*I passed a list of production that form the kernel of a state, return closing it </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">the</td><td>kernels of the state </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>list of products forming the state </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_r0_8java_source.html#l00027">27</a> of file <a class="el" href="_l_r0_8java_source.html">LR0.java</a>.</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22_cgraph" id="classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_r0.html#a8de929e041a5a1a273e6ddd05dc7e0ca" title="checks if a state is present in an automaton" alt="" coords="552,26,752,53"/><area shape="rect" id="node5" href="classcontext_free_1_1grammar_1_1_production.html#a6b42819c4b8af1aa759edf3ad5978f67" title="contextFree.grammar.Production.getLeft" alt="" coords="801,26,1055,53"/><area shape="rect" id="node7" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a629ab4dc36a869b93fa239a3fee760f9" title="Get production list." alt="" coords="265,65,503,92"/><area shape="rect" id="node10" href="classcontext_free_1_1parser_1_1_l_r0.html#a242530010547a830ad1b9c35a724a7e6" title="checks if a production is already in a list of productions." alt="" coords="265,116,503,142"/></map>
</div>
</p>

<p><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22_icgraph" id="classcontext_free_1_1parser_1_1_l_r0_aa0e8369b6e2db7489437ad8a6f217d22_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_r0.html#aea1ecb06a1880a8bc5eeb4efcca0ecea" title="Passed a state and the symbol that follows the point, returns the kernel of the new state with the re..." alt="" coords="265,5,458,32"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_r0.html#aa96d752420b690ccbbc9fad67691f36a" title="given a grammar G we calculate the associated grammar augmented by adding the production S &#39;:: =..." alt="" coords="507,31,693,57"/><area shape="rect" id="node7" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="741,31,936,57"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aea1ecb06a1880a8bc5eeb4efcca0ecea"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a>&gt; <a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html#aea1ecb06a1880a8bc5eeb4efcca0ecea">contextFree.parser.LR0.GoTo</a> </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt;&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>X</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Passed a state and the symbol that follows the point, returns the kernel of the new state with the relative closure. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="classcontext_free_1_1parser_1_1_state.html">State</a></td><td>which calculated to be the new kernel </td></tr>
    <tr><td class="paramname">X</td><td>symbol that moves the point </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>closure of new state </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_r0_8java_source.html#l00089">89</a> of file <a class="el" href="_l_r0_8java_source.html">LR0.java</a>.</p>

<p><div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea_cgraph" id="classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_r0.html#aa0e8369b6e2db7489437ad8a6f217d22" title="*I passed a list of production that form the kernel of a state, return closing it" alt="" coords="248,40,459,66"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_r0.html#a8de929e041a5a1a273e6ddd05dc7e0ca" title="checks if a state is present in an automaton" alt="" coords="795,26,995,53"/><area shape="rect" id="node7" href="classcontext_free_1_1grammar_1_1_production.html#a6b42819c4b8af1aa759edf3ad5978f67" title="contextFree.grammar.Production.getLeft" alt="" coords="1043,26,1298,53"/><area shape="rect" id="node9" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a629ab4dc36a869b93fa239a3fee760f9" title="Get production list." alt="" coords="507,65,746,92"/><area shape="rect" id="node12" href="classcontext_free_1_1parser_1_1_l_r0.html#a242530010547a830ad1b9c35a724a7e6" title="checks if a production is already in a list of productions." alt="" coords="507,116,746,142"/></map>
</div>
</p>

<p><div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea_icgraph" id="classcontext_free_1_1parser_1_1_l_r0_aea1ecb06a1880a8bc5eeb4efcca0ecea_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_r0.html#aa96d752420b690ccbbc9fad67691f36a" title="given a grammar G we calculate the associated grammar augmented by adding the production S &#39;:: =..." alt="" coords="248,5,435,32"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="483,5,677,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa96d752420b690ccbbc9fad67691f36a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="classcontext_free_1_1parser_1_1_state.html">State</a>&gt; <a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html#aa96d752420b690ccbbc9fad67691f36a">contextFree.parser.LR0.Item</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>given a grammar G we calculate the associated grammar augmented by adding the production S ':: =. </p>
<p>S, where S is the assiom. We calculate the closure of it and so associated GoTo 'to have the finite state autom. </p>
<dl class="section return"><dt>Returns:</dt><dd>the autom LR(0) </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_r0_8java_source.html#l00118">118</a> of file <a class="el" href="_l_r0_8java_source.html">LR0.java</a>.</p>

<p><div id="dynsection-6" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-6-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-6-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-6-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a_cgraph" id="classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a_cgraph">
<area shape="rect" id="node3" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#aceb36e584d26bd39a0f5186742cc9b5b" title="Get the axioms." alt="" coords="241,56,479,83"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_r0.html#aa0e8369b6e2db7489437ad8a6f217d22" title="*I passed a list of production that form the kernel of a state, return closing it" alt="" coords="528,107,739,133"/><area shape="rect" id="node7" href="classcontext_free_1_1parser_1_1_l_r0.html#a8de929e041a5a1a273e6ddd05dc7e0ca" title="checks if a state is present in an automaton" alt="" coords="1075,157,1275,184"/><area shape="rect" id="node18" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a4b1bc2134e63051dc37e693294aaeec6" title="Get non&#45;terminal symbols list." alt="" coords="241,259,479,285"/><area shape="rect" id="node20" href="classcontext_free_1_1parser_1_1_l_r0.html#aea1ecb06a1880a8bc5eeb4efcca0ecea" title="Passed a state and the symbol that follows the point, returns the kernel of the new state with the re..." alt="" coords="263,157,457,184"/><area shape="rect" id="node24" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="242,309,478,336"/><area shape="rect" id="node9" href="classcontext_free_1_1grammar_1_1_production.html#a6b42819c4b8af1aa759edf3ad5978f67" title="contextFree.grammar.Production.getLeft" alt="" coords="1323,107,1578,133"/><area shape="rect" id="node11" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a629ab4dc36a869b93fa239a3fee760f9" title="Get production list." alt="" coords="787,5,1026,32"/><area shape="rect" id="node14" href="classcontext_free_1_1parser_1_1_l_r0.html#a242530010547a830ad1b9c35a724a7e6" title="checks if a production is already in a list of productions." alt="" coords="787,107,1026,133"/></map>
</div>
</p>

<p><div id="dynsection-7" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-7-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-7-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-7-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a_icgraph" id="classcontext_free_1_1parser_1_1_l_r0_aa96d752420b690ccbbc9fad67691f36a_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="240,5,435,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a242530010547a830ad1b9c35a724a7e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html#a242530010547a830ad1b9c35a724a7e6">contextFree.parser.LR0.prodPresente</a> </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt;&#160;</td>
          <td class="paramname"><em>j</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a>&#160;</td>
          <td class="paramname"><em>corrente</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>checks if a production is already in a list of productions. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">the</td><td>state in which control </td></tr>
    <tr><td class="paramname">prodaction</td><td>to search </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>true if there is false if it is not </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_r0_8java_source.html#l00247">247</a> of file <a class="el" href="_l_r0_8java_source.html">LR0.java</a>.</p>

<p><div id="dynsection-8" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-8-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-8-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-8-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6_cgraph" id="classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_r0.html#a8de929e041a5a1a273e6ddd05dc7e0ca" title="checks if a state is present in an automaton" alt="" coords="293,5,493,32"/><area shape="rect" id="node5" href="classcontext_free_1_1grammar_1_1_production.html#a6b42819c4b8af1aa759edf3ad5978f67" title="contextFree.grammar.Production.getLeft" alt="" coords="542,31,797,57"/></map>
</div>
</p>

<p><div id="dynsection-9" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-9-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-9-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-9-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6_icgraph" id="classcontext_free_1_1parser_1_1_l_r0_a242530010547a830ad1b9c35a724a7e6_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#ac711dbbc2be25d15c1a8aade7579e94e" title="Passed a list of production I that form the kernel of a state, return closing it, and the lookahead s..." alt="" coords="552,5,803,32"/><area shape="rect" id="node10" href="classcontext_free_1_1parser_1_1_l_r0.html#aa0e8369b6e2db7489437ad8a6f217d22" title="*I passed a list of production that form the kernel of a state, return closing it" alt="" coords="293,56,504,83"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="1173,31,1368,57"/><area shape="rect" id="node7" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#aeec32b5c83e031225114f46ac377f804" title="Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation..." alt="" coords="851,31,1125,57"/><area shape="rect" id="node12" href="classcontext_free_1_1parser_1_1_l_r0.html#aea1ecb06a1880a8bc5eeb4efcca0ecea" title="Passed a state and the symbol that follows the point, returns the kernel of the new state with the re..." alt="" coords="581,56,774,83"/><area shape="rect" id="node14" href="classcontext_free_1_1parser_1_1_l_r0.html#aa96d752420b690ccbbc9fad67691f36a" title="given a grammar G we calculate the associated grammar augmented by adding the production S &#39;:: =..." alt="" coords="895,81,1081,108"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a8de929e041a5a1a273e6ddd05dc7e0ca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html#a8de929e041a5a1a273e6ddd05dc7e0ca">contextFree.parser.LR0.uguale</a> </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_state.html">State</a> &gt;&#160;</td>
          <td class="paramname"><em>automa</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> &gt;&#160;</td>
          <td class="paramname"><em>stato</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>checks if a state is present in an automaton </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">autom</td><td></td></tr>
    <tr><td class="paramname">state</td><td>to search </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>-1 If not present, otherwise returns the number state equal to the past </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_r0_8java_source.html#l00198">198</a> of file <a class="el" href="_l_r0_8java_source.html">LR0.java</a>.</p>

<p><div id="dynsection-10" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-10-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-10-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-10-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca_cgraph" id="classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1grammar_1_1_production.html#a6b42819c4b8af1aa759edf3ad5978f67" title="contextFree.grammar.Production.getLeft" alt="" coords="254,5,509,32"/></map>
</div>
</p>

<p><div id="dynsection-11" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-11-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-11-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-11-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca_icgraph" id="classcontext_free_1_1parser_1_1_l_r0_a8de929e041a5a1a273e6ddd05dc7e0ca_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#ac711dbbc2be25d15c1a8aade7579e94e" title="Passed a list of production I that form the kernel of a state, return closing it, and the lookahead s..." alt="" coords="541,28,792,55"/><area shape="rect" id="node10" href="classcontext_free_1_1parser_1_1_l_r0.html#aa0e8369b6e2db7489437ad8a6f217d22" title="*I passed a list of production that form the kernel of a state, return closing it" alt="" coords="561,104,772,131"/><area shape="rect" id="node14" href="classcontext_free_1_1parser_1_1_l_r0.html#aa96d752420b690ccbbc9fad67691f36a" title="given a grammar G we calculate the associated grammar augmented by adding the production S &#39;:: =..." alt="" coords="1127,104,1313,131"/><area shape="rect" id="node19" href="classcontext_free_1_1parser_1_1_l_r0.html#a242530010547a830ad1b9c35a724a7e6" title="checks if a production is already in a list of productions." alt="" coords="254,79,493,106"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="1405,28,1600,55"/><area shape="rect" id="node7" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#aeec32b5c83e031225114f46ac377f804" title="Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation..." alt="" coords="1083,28,1357,55"/><area shape="rect" id="node12" href="classcontext_free_1_1parser_1_1_l_r0.html#aea1ecb06a1880a8bc5eeb4efcca0ecea" title="Passed a state and the symbol that follows the point, returns the kernel of the new state with the re..." alt="" coords="841,79,1034,106"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/contextFree/parser/<a class="el" href="_l_r0_8java_source.html">LR0.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>contextFree</b>      </li>
      <li class="navelem"><a class="el" href="namespacecontext_free_1_1parser.html">parser</a>      </li>
      <li class="navelem"><a class="el" href="classcontext_free_1_1parser_1_1_l_r0.html">LR0</a>      </li>

    <li class="footer">Generated on Wed Mar 21 2012 19:55:43 for Context Free LALR1 compiler by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
